package com.ruoyi.webhook.controller;

import com.ruoyi.webhook.WebhookAPI;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/webHook/sendMessage")
public class WebHookSend {
    WebhookAPI webhookAPI = new WebhookAPI();
    @PreAuthorize("@ss.hasPermi('product:product:list')")
    @GetMapping
    public void sendMessage(@RequestParam String message)
    {
        webhookAPI.sendMessage(message);
    }
}
